<template>
    <ul class="TabGets" ref="TabGets">
        <li v-for="(item,index) in tabGetsList" :key="index" @click="ForLev(item)">
            <p>{{item.moduleName}}</p>
        </li>
    </ul>
</template>
<script>
import { state } from 'vuex';
import bus from '@/components/common/bus';

export default {
    name: 'TabGets',
    data() {
        return {
            tabGetsList: []
        };
    },
    computed: {},
    mounted() {},
    methods: {
        ForLev(item) {
            if (this.$router.history.current.fullPath != '/LevHome') {
                this.$router.push('/LevHome');
                bus.$emit('up', item.childNode);
            } else {
                bus.$emit('up', item.childNode);
            }
        }
    }
};
</script>
<style lang="less" scoped>
.TabGets {
    flex: 1;
    display: flex;
    li {
        cursor: pointer;
        margin-left: 15px;
    }
}
</style>